package org.jeecg.modules.planProduction.service;

import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.planProduction.entity.PlanProductsDetail;
import org.jeecg.modules.planProduction.entity.PlanPartsDetail;
import org.jeecg.modules.planProduction.entity.PlanProduction;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 生产计划
 * @Author: jeecg-boot
 * @Date:   2025-02-10
 * @Version: V1.0
 */
public interface IPlanProductionService extends IService<PlanProduction> {

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(PlanProduction planProduction,List<PlanProductsDetail> planProductsDetailList,List<PlanPartsDetail> planPartsDetailList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(PlanProduction planProduction,List<PlanProductsDetail> planProductsDetailList,List<PlanPartsDetail> planPartsDetailList);
	
	/**
	 * 删除一对多
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

    Result<?> release(String id);

	void createPartsDetail(String id);

}
